﻿using Newtonsoft.Json;

namespace Project.Core.Config.Entity.Dto {
    public class UserLoginDto {
        public UserLoginDto(long id, string username, List<string> authorities) {
            this.Id = id;
            this.UserName = username;
            this.Authorities = authorities;
        }

        /// <summary>
        /// 用户id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户权限
        /// </summary>
        public List<string> Authorities { get; set; }

        public override string ToString() {
            return JsonConvert.SerializeObject(this);
        }
    }
}
